package com.sloth.bear.dto.request;

import jakarta.validation.constraints.NotNull;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

@Data
public class DocumentRequest {

    @NotNull(message = "空间id不能为空")
    private Long namespaceId;

    private Long parentId;

    @NotBlank(message = "文档名称不能为空")
    @Size(max = 255, message = "文档名称长度不能超过255个字符")
    private String name;

    private String content;

    private Boolean isFavorite;

    private Integer sortNo;
}